-- GENERATED SPELL FOR [Amani Berserker] --


function spell0_15643(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_15643', 547, 1)
end

function Sorts_15643(pUnit, Event)
local choix_sorts_15643 = math.random(0, 0)
if choix_sorts_15643 == 0 then
pUnit:RegisterEvent('spell0_15643', 1, 1)
end
end

function mob15643_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15643', math.random(1500, 3000), 1)
end

function mob15643_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15643_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15643_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15643, 1, 'mob15643_Action')
RegisterUnitEvent(15643, 2, 'mob15643_Leave')
RegisterUnitEvent(15643, 3, 'mob15643_Kill')
RegisterUnitEvent(15643, 4, 'mob15643_Die')
